package top.fengyulou.xiaofeng.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import top.fengyulou.xiaofeng.domain.PaperQuestion;
import top.fengyulou.xiaofeng.domain.PaperQuestionExample;
import top.fengyulou.xiaofeng.dto.PaperQuestionDto;
import top.fengyulou.xiaofeng.dto.PaperQuestionDto;
import top.fengyulou.xiaofeng.dto.QuestionDto;

public interface PaperQuestionMapper {
    void insertBatch(List<PaperQuestionDto> list);

    List<PaperQuestionDto> list(PaperQuestionDto paperQuestionDto);

    PaperQuestionDto getById(String id);

    void insert(PaperQuestionDto paperQuestionDto);

    void update(PaperQuestionDto paperQuestionDto);

    void updateScore(PaperQuestionDto paperQuestionDto);

    void delete(String[] ids);

    void deleteByPaperId(@Param("paperId") String paperId);

    List<QuestionDto> qstList(QuestionDto query);

    PaperQuestionDto getByPaperIdAndQstId(@Param("paperId") String paperId, @Param("qstId") String qstId);
}